import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/deliver.vue'
import deliverMenu from '../views/deliver/deliverMenu.vue'
import waitToGo from '../views/deliver/waitToGo.vue'
import waitToGoDetail from '../views/deliver/waitToGoDetail.vue'
import cargo from '../views/deliver/cargo.vue'
import cargoQuick from '../views/deliver/cargo_quick.vue'
import stj from '../views/deliver/stj.vue'
import chtj from '../views/deliver/chtj.vue'
import loadedHist from '../views/deliver/loadedHist.vue'
import block from '../views/deliver/block.vue'
import sale from '../views/deliver/sale/sale.vue'
import pur from '../views/deliver/pur.vue'
import wrapperBack from '../views/deliver/back/wrapperBack.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/deliverMenu',
      name: 'deliverMenu',
      component: deliverMenu,
      children: [
        {
          path: '/',
          redirect: '/cargoquick'
        },
        {
          path: '/cargoquick',
          name: 'cargoquick',
          component: cargoQuick
        },
        {
          path: '/waitToGo',
          name: 'waitToGo',
          component: waitToGo
        },
        {
          path: '/waitToGoDetail',
          name: 'waitToGoDetail',
          component: waitToGoDetail
        },
        {
          path: '/wrapperBack',
          name: 'wrapperBack',
          component: wrapperBack
        },
        {
          path: '/cargo',
          name: 'cargo',
          component: cargo
        },
        {
          path: '/stj',
          name: 'stj',
          component: stj
        },
        {
          path: '/chtj',
          name: 'chtj',
          component: chtj
        },
        {
          path: '/loadedHist',
          name: 'loadedHist',
          component: loadedHist
        },
        {
          path: '/block',
          name: 'block',
          component: block
        },
        {
          path: '/sale',
          name: 'sale',
          component: sale
        },
        {
          path: '/pur',
          name: 'pur',
          component: pur
        },
      ]
    },

  ]
})












export default router
